<script setup lang="ts">
import type { ComponentSize } from 'element-plus';
import { ElConfigProvider } from 'element-plus';

import { propTypes } from '@/utils/propTypes';

const props = defineProps({
  size: propTypes.oneOf<ComponentSize>(['default', 'small', 'large']).def('default')
});
</script>
<template>
  <ElConfigProvider :size="size" :message="{ max: 1 }"><slot></slot></ElConfigProvider>
</template>
